package com.ruoyi.supervise.collectemployee.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.supervise.collectemployee.ro.GetCollectEmployeeParam;
import com.ruoyi.supervise.collectemployee.service.CollectEmployeeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @description:
 * @author: xly
 * @date: 2022-01-06
 */
@RestController
@RequestMapping("/supervise")
@Api(tags = "监管端---驾驶员考核")
public class CollectEmployeeController {

    @Autowired
    private CollectEmployeeService collectEmployeeService;

    @GetMapping("/get-collectemployee")
    @ApiOperation("驾驶员考核")
    public AjaxResult getCollectemployee(@Valid GetCollectEmployeeParam param)
    {
        return AjaxResult.success(collectEmployeeService.getCollectemployee(param));
    }
}
